package com.wise.wing.activity.tools;

public class StringFormattor {
	private static final boolean ENABLE = true;
	
	public static String dropSecond(String time) {
		String[] tmp = time.split(":");
		if(ENABLE)
			return tmp[0] + ":" + tmp[1];
		else
			return time;
	}
	
	public static String dropYear(String time) {
		String[] tmp = time.split("-");
		if(ENABLE)
			return tmp[1] + "-" + tmp[2];
		else
			return time;
	}
}
